package com.gopay.bis.dao.payconfig.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.bis.dao.payconfig.BisBankBizIntrConfigDAO;
import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.domain.bis.BisBankBizIntrConfig;

@Repository("bisBankBizIntrConfigDAO")
public class BisBankBizIntrConfigDAOImpl extends BaseDAOImpl<BisBankBizIntrConfig, String>
implements BisBankBizIntrConfigDAO{

	@Override
	public List<BisBankBizIntrConfig> findAll() {
		StringBuilder s = new StringBuilder("from BisBankBizIntrConfig b where ");
		s.append("b.enable=:enable");
		
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("enable", true);
		
		return findByHql(s.toString(), param);
	}
}

